<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>七海后台管理系统回收站</title>
    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css">
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .green {
            color: green;
        }

        .red {
            color: tomato;
        }

        .gray {
            color: gray;
        }
    </style>
</head>

<body>



    <h1 style="text-align:center;">回收站列表</h1>
    <div style="text-align:center;padding:30px;">
        <button id="addBtn">添加文章</button>

    </div>
    <div>

        <table align="center" width="1500px" border="1px" rules="all">
            <tr>
                <td>序号</td>
                <td>标题</td>
                <td>所属分类</td>
                <td>图片</td>
                <td>作者</td>
                <td>内容</td>
                <td>状态</td>
                <td>添加时间</td>
                <td>修改时间</td>
                <td>操作</td>

            </tr>
            {{each articles item index}}
            <tr>
                <td>{{index + 1}}</td>
                <td>{{item.title}}</td>
                <td>{{item.cate_name}}</td>
                <td>{{item.img}}</td>
                <td>{{item.author}}</td>
                <td><a href="#">查看详情</a></td>
                <td>
                    {{@ item.status_text }}
                </td>
                <td>{{item.add_time | dateFormat 'YYYY-MM-DD'}}</td>
                <td>{{item.update_time | dateFormat}}</td>
                <td>
                    <a href="#" onclick="confirmDelete('{{item.id}}');">永久删除</a>
                    <a href="/restore?id={{item.id}}" onclick="return confirm('确实还原数据吗？');">确认还原</a>
                </td>
            </tr>
            {{/each }}
        </table>
    </div>

   
</body>

<script src="/static/js/jquery.js"></script>
<script src="/static/plugins/layui/layui.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/layer/3.5.1/layer.js"></script>
<script src="/static/js/recycle.js"></script>

</html>